package com.grass.appointment.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.RelativeLayout;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.recyclerview.widget.RecyclerView;
import com.androidx.p013lv.base.view.StatusControlLayout;
import com.grass.appointment.C2693BR;
import com.grass.appointment.C2694R;
import com.grass.appointment.activity.CitySelectActivity;
import com.grass.appointment.fragment.DataAppointmentFragment;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

public class AppointmentRecyclerLayoutBindingImpl extends AppointmentRecyclerLayoutBinding {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private long mDirtyFlags;
    private final RelativeLayout mboundView0;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C2694R.C2697id.recycler, 3);
    }

    public AppointmentRecyclerLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 4, sIncludes, sViewsWithIds));
    }

    private AppointmentRecyclerLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (RecyclerView) objArr[3], (SmartRefreshLayout) objArr[1], (StatusControlLayout) objArr[2]);
        this.mDirtyFlags = -1;
        RelativeLayout relativeLayout = (RelativeLayout) objArr[0];
        this.mboundView0 = relativeLayout;
        relativeLayout.setTag(null);
        this.refresh.setTag(null);
        this.statusLayout.setTag(null);
        setRootTag(view);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 4;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C2693BR.status == i) {
            setStatus((Integer) obj);
        } else if (C2693BR.statusRefresh != i) {
            return false;
        } else {
            setStatusRefresh((Integer) obj);
        }
        return true;
    }

    @Override // com.grass.appointment.databinding.AppointmentRecyclerLayoutBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C2693BR.status);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.AppointmentRecyclerLayoutBinding
    public void setStatusRefresh(Integer num) {
        this.mStatusRefresh = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C2693BR.statusRefresh);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        Integer num2 = this.mStatusRefresh;
        long j2 = 5 & j;
        int i = 0;
        int safeUnbox = j2 != 0 ? ViewDataBinding.safeUnbox(num) : 0;
        long j3 = j & 6;
        if (j3 != 0) {
            i = ViewDataBinding.safeUnbox(num2);
        }
        if (j3 != 0) {
            DataAppointmentFragment.refreshStatus(this.refresh, i);
        }
        if (j2 != 0) {
            CitySelectActivity.showStatusView(this.statusLayout, safeUnbox);
        }
    }
}
